(in-package :spring)

(defcontext "parent" (:resources ("/dynaspring/testParentContext.xml")))

(defcontext "lib1" (:parent "parent"
		    :resources ("/dynaspring/testSimpleConstructorArgs.lisp")))

(defcontext "lib2" (:parent (ref "parent")
		    :resources ("/dynaspring/testSimplePropertyValues.xml")))

(defcontext "ctx" (:parent "parent"
		   :imports ((:from "lib1"
			      :import "simple-bean1" "simple-bean2")
			     (:from "lib2"
			      :import ("simple-bean101" :as "bean3")
			              ("simple-bean102" :as "bean4"))))
  (deflist "test!" ()
    (ref "parent-bean-1")
    (ref "simple-bean1")
    (ref "simple-bean2")
    (ref "bean3")
    (ref "bean4")))